home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / mx / styles / StyleProxy.as < prev   
Text File  |  2009-02-12  |  3KB  |  133 lines

  1. package mx.styles
  2. {
  3.    import mx.core.FlexVersion;
  4.    import mx.core.mx_internal;
  5.    
  6.    use namespace mx_internal;
  7.    
  8.    public class StyleProxy implements IStyleClient
  9.    {
  10.       
  11.       mx_internal static const VERSION:String = "3.0.0.0";
  12.        
  13.       
  14.       private var _source:IStyleClient;
  15.       
  16.       private var _filterMap:Object;
  17.       
  18.       public function StyleProxy(param1:IStyleClient, param2:Object)
  19.       {
  20.          super();
  21.          this.filterMap = param2;
  22.          this.source = param1;
  23.       }
  24.       
  25.       public function styleChanged(param1:String) : void
  26.       {
  27.          return _source.styleChanged(param1);
  28.       }
  29.       
  30.       public function get filterMap() : Object
  31.       {
  32.          return FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0 ? null : _filterMap;
  33.       }
  34.       
  35.       public function set filterMap(param1:Object) : void
  36.       {
  37.          _filterMap = param1;
  38.       }
  39.       
  40.       public function get styleDeclaration() : CSSStyleDeclaration
  41.       {
  42.          return _source.styleDeclaration;
  43.       }
  44.       
  45.       public function notifyStyleChangeInChildren(param1:String, param2:Boolean) : void
  46.       {
  47.          return _source.notifyStyleChangeInChildren(param1,param2);
  48.       }
  49.       
  50.       public function set inheritingStyles(param1:Object) : void
  51.       {
  52.       }
  53.       
  54.       public function get source() : IStyleClient
  55.       {
  56.          return _source;
  57.       }
  58.       
  59.       public function get styleName() : Object
  60.       {
  61.          if(_source.styleName is IStyleClient)
  62.          {
  63.             return new StyleProxy(IStyleClient(_source.styleName),filterMap);
  64.          }
  65.          return _source.styleName;
  66.       }
  67.       
  68.       public function registerEffects(param1:Array) : void
  69.       {
  70.          return _source.registerEffects(param1);
  71.       }
  72.       
  73.       public function regenerateStyleCache(param1:Boolean) : void
  74.       {
  75.          _source.regenerateStyleCache(param1);
  76.       }
  77.       
  78.       public function get inheritingStyles() : Object
  79.       {
  80.          return _source.inheritingStyles;
  81.       }
  82.       
  83.       public function get className() : String
  84.       {
  85.          return _source.className;
  86.       }
  87.       
  88.       public function clearStyle(param1:String) : void
  89.       {
  90.          _source.clearStyle(param1);
  91.       }
  92.       
  93.       public function getClassStyleDeclarations() : Array
  94.       {
  95.          return _source.getClassStyleDeclarations();
  96.       }
  97.       
  98.       public function set nonInheritingStyles(param1:Object) : void
  99.       {
  100.       }
  101.       
  102.       public function setStyle(param1:String, param2:*) : void
  103.       {
  104.          _source.setStyle(param1,param2);
  105.       }
  106.       
  107.       public function get nonInheritingStyles() : Object
  108.       {
  109.          return FlexVersion.compatibilityVersion < FlexVersion.VERSION_3_0 ? _source.nonInheritingStyles : null;
  110.       }
  111.       
  112.       public function set styleName(param1:Object) : void
  113.       {
  114.          _source.styleName = param1;
  115.       }
  116.       
  117.       public function getStyle(param1:String) : *
  118.       {
  119.          return _source.getStyle(param1);
  120.       }
  121.       
  122.       public function set source(param1:IStyleClient) : void
  123.       {
  124.          _source = param1;
  125.       }
  126.       
  127.       public function set styleDeclaration(param1:CSSStyleDeclaration) : void
  128.       {
  129.          _source.styleDeclaration = styleDeclaration;
  130.       }
  131.    }
  132. }
  133.